package cn.school.student.entity;

import cn.school.common.utils.SysUserUtils;
import cn.school.student.entity.vo.TExamTestpaperVo;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

/**
 * 考試試卷表(TExamTestpaper)实体类
 *
 * @author makejava
 * @since 2023-02-16 14:45:35
 */
@Data
@TableName("t_exam_testpaper")
public class TExamTestpaper implements Serializable {
    private static final long serialVersionUID = -14863883303136881L;
    /**
     * 試卷id
     */
    private Long id;
    /**
     * 題目id
     */
    private Long questionsId;
    /**
     * 班級id
     */
    private Long gradeId;
    /**
     * 科目id
     */
    private Long subjectId;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 创建人
     */
    private String createBy;
    /**
     * 修改时间
     */
    private Date modifyTime;
    /**
     * 修改人
     */
    private String modifyBy;
    /**
     * 分类
     */
    private String classify;
    /**
     * 专业
     */
    private String major;
    /**
     * 年纪
     */
    private  String grade;

    /**
     * 试卷名称
     */
    private String testpaperName;
    /**
     * 总分
     */
    private String totalPoints;
    /**
     * 考试时长
     */
    private String duration;

    /**
     * 默认租户为当前登录人的租户
     */
    private String tenantId = SysUserUtils.getSysUser().getTenantId();


    @TableField(exist = false)
    private List<TExamCorrelation> examCorrelationsList;

    @TableField(exist = false)
    private List<TExamTestpaperVo> examTestpaperList;

    @TableField(exist = false)
    private List<TExamSubject> examSubjectList;

    /**
     * 类型 0 文件夹 1 试卷
     */
    private String type;
    /**
     * 上级ID
     */
    private String pid;

    @TableField(exist = false)
    private Boolean hasChildren;

    /**
     * 试卷数量
     */
    @TableField(exist = false)
    private String testpaperCount;



}

